import request from '@/utils/request'

export const addOneCouponBatch = data => request({
  url: '/addOneCouponBatch',
  method: 'put',
  data: data || {}
})

export const deleteOneCouponBatch = id => request({
  url: '/deleteOneCouponBatch/' + id,
  method: 'delete'
})

export const updateOneCouponBatch = data => request({
  url: '/updateOneCouponBatch',
  method: 'patch',
  data: data || {}
})

export const getOneCouponBatch = id => request({
  url: '/getOneCouponBatch/' + id,
  method: 'get'
})

export const getCouponBatchList = data => request({
  url: '/getCouponBatchList',
  method: 'post',
  data: data || {}
})

export const getAllCouponBatchList = () => request({
  url: '/getAllCouponBatchList',
  method: 'get'
})

